package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.dto.NursingLevelDto;
import com.zzyl.entity.NursingLevel;
import com.zzyl.vo.NursingLevelVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NursingLevelMapper {


    /**
     * 查询所有护理等级
     * @return
     */
    List<NursingLevelVo> getListAll();

    /**
     * 新增护理等级
     * @param nursingLevel
     */
    void addNursingLevel(NursingLevel nursingLevel);

    /**
     * 分页条件查询护理等级
     * @param name
     * @param status
     * @return
     */
    Page<NursingLevelVo> getByPage(String name, Integer status);

    /**
     * 根据id查询护理等级
     * @param id
     * @return
     */
    NursingLevelVo getById(Integer id);

    /**
     * 修改护理等级
     * @param nursingLevel
     */
    void updateNursingLevel(NursingLevel nursingLevel);

    /**
     * 删除护理等级
     * @param id
     */
    void deleteById(Integer id);
}
